<ion-view view-title="商城" hide-tabs="false" >
    <ion-header-bar align-title="center" class="bar-positive" id="bor">
        <h1 class="title">商城</h1>
    </ion-header-bar> 
    <ion-tabs class="tabs-positive tabs-striped tabs-top">  
        <ion-tab title="优惠券" >  
            <ion-view>  
                <ion-content id="coupon" [scroll="true"] [overflow-scroll="true"]>  
                <!-- 下拉刷新 -->
                <!-- <ion-refresher  pulling-text="下拉刷新..."  on-refresh="doRefresh_coupon()">  </ion-refresher>   -->
                <!-- 优惠券列表 -->
                <ul style="padding-bottom:0px;">
                    <li ui-sref="tab.coupon_detail({id:item.goodsId})" ng-repeat="item in coupons"><!--item.goods_id-->
                        <img ng-src="img/yhbg.jpg" alt="优惠券背景">
                        <div class="info">
                            <img ng-src="{{item.imageUrl}}" alt="优惠券logo"> 
                            <p>{{item.couponInfo['couponInfo']}}</p>
                            <h4>{{item.couponInfo['couponName']}}</h4>
                        </div>
                        <p class="bottom">
                             <span class="time">有效日期{{item.stopSaleTime | shijian}}</span> 
                             <span class="right pay">{{item.payPoint | number:0}} <small>积分+</small>{{item.payMoney}}<small>元</small></span> 
                        </p> 
                    </li>
                </ul>
                <div style="text-align:center;font-size:10px;color:#e0e0e0;">{{NODATA_show_coupon}}</div>
                <div ng-if="nomoreData_coupon" class="nomoreData">
                    没有更多优惠券了~
                </div>
                <!-- 上拉加载更多 -->
                <ion-infinite-scroll ng-if="moreDataCoupon" on-infinite="loadMoreCoupon()" immediate-check="false"
                    distance="10%"></ion-infinite-scroll>  
            </ion-view>  
        </ion-tab>  
        <ion-tab title="礼品券">  
            <ion-view>  
                <ion-content id="gift" [scroll="true"] [overflow-scroll="true"] style="padding:15px 0;">
                <!-- 下拉刷新 -->
                <!-- <ion-refresher  pulling-text="下拉刷新..."  on-refresh="doRefresh_gift()">  </ion-refresher>   -->
                <!-- 优惠券列表 -->
                <ul style="padding-bottom:0px;">
                    <li ng-repeat="x in goods"  ui-sref="tab.goods({id:x.goodsId})" >
                        <img ng-src="{{x.imageUrl}}" alt="商品图片">
                        <p class="info">{{x.couponInfo.couponName}}</p>
                        <h4 class="pay">{{x.payPoint | number:0}} <small>积分+</small>{{x.payMoney}} <small>元</small></h4>
                        <p class="market_pay">市场参考价：{{x.couponInfo.couponPrice}}元</p>
                    </li>
                </ul>
                <div style="text-align:center;font-size:10px;color:#e0e0e0;">{{NODATA_show_goods}}</div>
                <div ng-if="nomoreData_good" class="nomoreData">
                    没有更多礼品券了~
                </div>
                <!-- 上拉加载更多 -->
                <ion-infinite-scroll ng-if="moreDataGood" on-infinite="loadMoreGood()" immediate-check="false"
                        distance="10%"></ion-infinite-scroll> 
            </ion-view>  
        </ion-tab>  
    </ion-tabs>  
</ion-view>
